<%@ page language="java" import="java.util.*,com.funning.bean.*"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>更新界面</title>
	<script type="text/javascript" src="<%=basePath%>js/tiny_mce/tiny_mce.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript">
		tinyMCE.init({
			mode : "textareas",
			theme : "simple"
		});
	</script>
	<script type="text/javascript">
		function contextinfo() {
			//alert("fjdhfjh");
			var context = $("#ofDesc").val();
			//alert("内容"+context);
			var result = "";
			if (context = "" ) {
				alert("笑话内容不能为空！ 请输入内容");
				result = false;
			} else {
				result = true;
			}
			return result;
		}
	</script>

	</head>

	<body bgcolor="#FAFBE7">

		<center>
			
			<%
				OfFuning ofFuning = (OfFuning) request.getAttribute("ofFuning");
			%>
			<form action="updateFuning.action" method="post" name="form1" >
				<table width="800" height="200" border="1" bordercolor="#59A646">
					<tr>
						<td>
							笑话编号：
						</td>
						<td>
							<input type="text" name="ofId" readonly="readonly"
								value="<%=ofFuning.getOfId()%>" />
						</td>
					</tr>
					<tr>
						<td>
							具体内容：
						</td>
						<td>
								<textarea name="ofDesc" id="ofDesc" rows="15" cols="100" style="width: 80%"><%=ofFuning.getOfDesc()%></textarea>
							

						</td>
					</tr>
					<tr align="right">
						<td colspan="2">
							<input type="submit" value="更新" onclick="return contextinfo()"/>
						</td>
					</tr>
				</table>
			</form>
		</center>
	</body>
</html>
